<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MD5 Hasher</title>
</head>

<body>
<?php
require_once ('config.inc.php');
error_reporting ( E_ALL );
session_start ();
if (isset ( $_POST ['Password'] ))
	$_SESSION ['adminpwd'] = $_POST ['Password'];
$isAdmin = isset ( $_SESSION ['adminpwd'] ) && md5 ( $_SESSION ['adminpwd'] ) == AdminPwdMD5;
if ($isAdmin) {
	if (isset ( $_POST ['str'] ))
		echo '<p>' . md5 ( $_POST ['str'] ) . '</p>';
	?>
<form action="" method="post">
		<input name="str" type="text" /> <input type="submit" />
	</form>
<?php }  ?>
<a href="config.editor.php">Back to editor</a>
</body>
</html>